<template>
	<view class="">
		<MyHeader :isBack="false" title="面试流程"></MyHeader>
		<view class="process">
			<view class="process-content">
				<!-- 面试流程 -->
				<Process :processList = 'processList'></Process>
			</view>
		</view>
		<MyTabbar :selected="selected"></MyTabbar>
	</view>
</template>

<script>
	import MyHeader from '../../Common/My-header/my-header.vue'
	import MyTabbar from '../../Common/Tabbar/My-Tabbar.vue'
	import Process from '../../Component/process/procesee.vue'
	import { processList } from '../../Service/process.js'
	export default{
		data(){
			return{
				selected:2,
				pageSize:10,
				pageNum:1,
				processList:[]
			}
		},
		computed:{
			changeList(){
				this.processList.map(item=>{
					item.interviewProcessAttrs.map(tep=>{
						// 判断是否有视频
						if(item.objType == 2){
							item.isVideo = true
						}else{
							item.isVideo = false
						}
					})
				})
			}
		},
		components:{
			MyTabbar,
			MyHeader,
			Process
		},
		onLoad() {
			this.__init()
		},
		methods:{
			async __init(){
				const data = {
					pageSize :this.pageSize,
					pageNum:this.pageNum
				}
				const res = await processList(data)
				this.processList = res
				console.log(res)
			},
		},
	}
</script>

<style scoped>
	page{
		height: auto;
	}
	.process{
		margin-top: 140rpx;
		width: 750rpx;
		padding-top: 20rpx;
		padding-bottom: 120rpx;
		background: url(../../static/imgs/4.jpg);
		background-size: cover;
		background-position: center;
		box-sizing: border-box;
		position: relative;
	}
	.process-content{
		width: 750rpx;
		height: 100%;
		position: absolute;
		top: 0;
		left: 10rpx;
		padding-bottom: 50rpx;
		position: relative;
	}
</style>
